import request from '../../utils/request'
import { TClass } from '../../Types/education'

// 获取班级列表
export const getClassnameListService = () => request.get('/public/classname')

// 根据id获取班级信息
export const getClassnameByIdService = (id: number) => request.get(`/public/classname/${id}`)

// 添加班级对象
export const addClassname = (data: TClass) => request.post('/public/classname', data)

// 添加班级列表
export const addClassnameList = (data: TClass[]) => request.post(`/public/classname/list`, data)

// 删除班级
export const deleteClassname = (id: number) => request.delete(`/public/classname/${id}`)

// 修改班级
export const updateClassname = (data: TClass) => request.put(`/public/classname`, data)
